# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         classtestfix
# Description:
# Author:       asus
# Date:         2019/3/11
#-------------------------------------------------------------------------------


zs_dict = {
    '1到99':[],
    '100到999':[],
    '1000到1999':[]
}

#获取质数
def get_zhsh(start,end):
    list_ss = []
    leap = 1
    for i in range(start,end):
        k = (int(i / 2) + 1)
        for j in range(2, k):
            if (i % j == 0):
                leap = 0
                break
        if leap:
            # print(i)
            list_ss.append(i)
        leap = 1

    return list_ss



def main_get_ss():
    for i in range(1,4):
        if i == 1:
            zs_dict['1到99'] = get_zhsh(1, 100)
        elif i == 2:
            zs_dict['100到999'] = get_zhsh(100, 1000)
        elif i == 3:
            zs_dict['1000到1999'] = get_zhsh(1000, 2000)

if __name__ == '__main__':
    # print(get_zhsh(1,100))
    # print(get_zhsh(100, 1000))
    # print(get_zhsh(1000, 2000))
    main_get_ss()
    print(zs_dict)